//
//  ViewController.m
//  CBSegment
//
//  Created by Apple on 2017/4/16.
//  Copyright © 2017年 com.bingo.com. All rights reserved.
//

#import "ViewController.h"
#import "CBHeaderChooseViewScrollView.h"

@interface ViewController ()

@end
#define CBScreenW [UIScreen mainScreen].bounds.size.width

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSArray *array=@[
                     @"全部",
                     @"待付款",
                     @"待发货",
                     @"待收货",
                     @"待评价",
                     ];
    
    CBHeaderChooseViewScrollView*headerView=[[CBHeaderChooseViewScrollView alloc]initWithFrame:CGRectMake(0, 64, CBScreenW, 40)];
    
    [self.view addSubview:headerView];

    [headerView setUpTitleArray:array titleColor:nil titleSelectedColor:nil titleFontSize:0];
    
    headerView.btnChooseClickReturn = ^(NSInteger x) {
        NSLog(@"点击了第%ld个按钮",x+1);
    };
}


@end
